package com.dd.common.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Schema(name = "ID参数")
public class IdDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id参数必传")
    @Min(value = 0, message = "id参数需大于0")
    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

}
